package com.site.wisdom_construction.controller.iotModule;

import com.site.wisdom_construction.responseEntity.OneDataResult;
import com.site.wisdom_construction.service.iotModule.WireropeMonitoringService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/11/8
 * @Description
 */
@Api(tags = "钢丝绳信息接口")
@RestController
@RequestMapping("WireropeMonitoring")
@CrossOrigin
public class WireropeMonitoringController {
    @Autowired
    private WireropeMonitoringService wireropeMonitoringService;

    @ApiOperation(value = "根据id分组查询钢丝绳信息", notes = "必传参数:projectId")
    @PostMapping("/findWireropeMonitoring")
    public OneDataResult findWireropeMonitoring(@RequestBody Map map) {
        OneDataResult oneDataResult = new OneDataResult();
        oneDataResult.setData(wireropeMonitoringService.findWireropeMonitoring(map));
        return oneDataResult;
    }
}
